@import scala.collection.mutable.ListBuffer
@import module.ServiceInfo

@(serviceInfos:Map[String, ListBuffer[ServiceInfo]])
<!DOCTYPE html>
<html lang="en">

    <head>

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>快塑网SOA管理站点</title>

            <!-- Bootstrap Core CSS -->
        <link href="@routes.Assets.versioned("css/bootstrap.min.css")" rel="stylesheet">
            <!-- Custom CSS -->
        <link href="@routes.Assets.versioned("css/sb-admin.css")" rel="stylesheet">
            <!-- Custom Fonts -->
        <link href="@routes.Assets.versioned("font-awesome-4.1.0/css/font-awesome.min.css")" rel="stylesheet" type="text/css">

            <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
            <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
            <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    </head>

    <body>

        <div id="wrapper">

                <!-- Navigation -->
            <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
                    <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="/index.html">快塑网服务管理平台</a>
                </div>
                    <!-- Top Menu Items -->
                <ul class="nav navbar-right top-nav">

                </ul>
                    <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
                <div class="collapse navbar-collapse navbar-ex1-collapse">
                    <ul class="nav navbar-nav side-nav">
                        <li>
                            <a href="/index.html"><i class="fa fa-fw fa-dashboard"></i> 概览</a>
                        </li>
                        <li>
                            <a href="/hosts.html"><i class="fa fa-fw fa-table"></i> 服务器</a>
                        </li>
                        <li  class="active">
                            <a href="/services.html/all"><i class="fa fa-fw fa-edit"></i> 服务</a>
                        </li>
                    </ul>
                </div>
                    <!-- /.navbar-collapse -->
            </nav>

            <div id="page-wrapper">

                <div class="container-fluid">
                @for(serviceInfo <- serviceInfos) {
                        <!-- Page Heading -->
                    <div class="row">
                        <div class="col-lg-12">
                            <h1 class="page-header">
                                服务列表
                            </h1>
                            <ol class="breadcrumb">
                                <li>
                                    <i class="fa fa-dashboard"></i> <a href="#">@serviceInfo._1</a>
                                </li>
                                @*<li class="active">*@
                                    @*<i class="fa fa-table"></i> Tables*@
                                @*</li>*@
                            </ol>
                        </div>
                    </div>
                        <!-- /.row -->

                    <div class="row">
                        <div class="col-lg-12">
                            @*<h2>Bordered Table</h2>*@
                            <div class="table-responsive">
                                <table class="table table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th>服务名称</th>
                                            <th>版本号</th>
                                            <th>端口</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    @for(service <- serviceInfo._2) {
                                        <tr>
                                            <td>@service.serviceName</td>
                                            <td>@service.version</td>
                                            <td>@service.port</td>
                                        </tr>
                                    }
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                }
                </div>
                    <!-- /.container-fluid -->

            </div>
                <!-- /#page-wrapper -->

        </div>
            <!-- /#wrapper -->
            <!-- jQuery Version 1.11.0 -->
        <script src="@routes.Assets.versioned("js/jquery-1.11.0.js")"></script>

            <!-- Bootstrap Core JavaScript -->
        <script src="@routes.Assets.versioned("js/bootstrap.min.js")"></script>

    </body>

</html>